window.onload = function () {
    var name = $("#username").val();
    var UID = $("#UID").val();
    $.ajax({
        url: "message.action",
        type: "post",
        async: true,
        dataType: "json",
        contentType: "application/x-www-form-urlencoded;charset=utf-8",
        data: {
            "name": name,
            "UID": UID
        },
        success: function (data) {
            $("#b1").html(data.user.customername);
            $("#b2").html(data.user.uid);
            $("#b3").html(data.user.tel);
            $("#b4").html(data.user.accumulation);
            $("#b5").html(data.user.monthlyincome);
        },
        error: function () {
            alert("请求失败！");
        }
    })
}
